package com.gouying.design.patterns.visitor;

public class VisitorMain {


    public static void main(String[] args) {
        HardWare cpu = new CPU();

        HardWare disk= new Disk();

        Visitor visitor = new UpdatePkg();
        visitor.visitor(cpu);
        visitor.visitor(disk);
    }
}
